package com.aifast.system.sys.entity;

import com.aifast.common.base.BaseEntity;
import com.aifast.common.dict.DictBind;
import com.aifast.common.dict.DictBindEasyExcelConverter;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;


/**
 * 租户对象 sys_tenant
 *
 * @author fujian
 * @date 2022-10-30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SysTenant extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 租户名
     */
    @ExcelProperty("租户名")
    @NotBlank(message = "租户名 不能为空！")
    private String name;

    @ExcelProperty("租户编号")
    @NotBlank(message = "租户编号 不能为空！")
    private String num;

    /**
     * 联系人
     */
    @ExcelProperty("联系人")
    @NotBlank(message = "联系人 不能为空！")
    private String contact;

    /**
     * 联系人电话
     */
    @ExcelProperty("联系人电话")
    @NotBlank(message = "联系人电话 不能为空！")
    private String contactMobile;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = DictBindEasyExcelConverter.class)
    @DictBind(type = "state")
    private Integer state;

    /**
     * 绑定域名
     */
    @ExcelProperty("绑定域名")
    private String domain;

    /**
     * 过期时间
     */
    @ExcelProperty("过期时间")
    private String expireTime;



}
